package com.guaoran.interview.in2019.inteface;

import java.util.Date;

/**
 * @Author gucheng
 * @Description 超类
 * 2019-09-11 13:31
 */
public class Super {
    public Super(){
        overrideMe();
    }

    public void overrideMe() {

    }

}
final class Sub extends Super{
    private final Date date ;
    Sub(){
        date = new Date();
    }

    @Override
    public void overrideMe() {
        System.out.println(date);
    }

    public static void main(String[] args) {
        Sub sub = new Sub();
        sub.overrideMe();
    }
}
